package net.vinote.sosa.rpc;

/**
 * RPC服务配置
 * 
 * @author Seer
 * @version RpcConfig.java, v 0.1 2015年11月22日 下午4:27:35 Seer Exp.
 */
public class RpcConfig {
	/** 主机IP */
	private String host;
	/** 端口号 */
	private int port;
	/** 超时时间 */
	private int timeout;
	/** */
	private RpcServiceCallback rpcCallback;

	/**
	 * Getter method for property <tt>host</tt>.
	 *
	 * @return property value of host
	 */
	public String getHost() {
		return host;
	}

	/**
	 * Setter method for property <tt>host</tt>.
	 *
	 * @param host
	 *            value to be assigned to property host
	 */
	public void setHost(String host) {
		this.host = host;
	}

	/**
	 * Getter method for property <tt>port</tt>.
	 *
	 * @return property value of port
	 */
	public int getPort() {
		return port;
	}

	/**
	 * Setter method for property <tt>port</tt>.
	 *
	 * @param port
	 *            value to be assigned to property port
	 */
	public void setPort(int port) {
		this.port = port;
	}

	/**
	 * Getter method for property <tt>rpcCallback</tt>.
	 *
	 * @return property value of rpcCallback
	 */
	public RpcServiceCallback getRpcCallback() {
		return rpcCallback;
	}

	/**
	 * Setter method for property <tt>rpcCallback</tt>.
	 *
	 * @param rpcCallback
	 *            value to be assigned to property rpcCallback
	 */
	public void setRpcCallback(RpcServiceCallback rpcCallback) {
		this.rpcCallback = rpcCallback;
	}

	/**
	 * Getter method for property <tt>timeout</tt>.
	 *
	 * @return property value of timeout
	 */
	public final int getTimeout() {
		return timeout;
	}

	/**
	 * Setter method for property <tt>timeout</tt>.
	 *
	 * @param timeout value to be assigned to property timeout
	 */
	public final void setTimeout(int timeout) {
		this.timeout = timeout;
	}

}
